//
//  ContactBankCell.swift
//  KaMengApplication
//
//  Created by DUONIU_MAC on 2018/11/27.
//  Copyright © 2018年 DUONIU_MAC. All rights reserved.
//

import UIKit

class ContactBankCell: UITableViewCell {
    
    let titleLabel = UILabel() //标题
    let contextLabel = UILabel() //内容

    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.contentView.backgroundColor = UIColor.clear
        self.backgroundColor = UIColor.clear
        
        titleLabel.font = UIFont.systemFont(ofSize: RATIO_H(maxNum: 16))
        self.contentView.addSubview(titleLabel)
        
        contextLabel.textColor = UIColor.gray
        contextLabel.font = UIFont.systemFont(ofSize: RATIO(maxNum: 14))
        contextLabel.numberOfLines = 0
        self.contentView.addSubview(contextLabel)
        
        titleLabel.snp.makeConstraints { (make) in
            make.top.equalToSuperview().offset(RATIO_H(maxNum: 10))
            make.height.equalTo(RATIO_H(maxNum: 20))
            make.width.greaterThanOrEqualTo(10)
            make.left.equalToSuperview().offset(RATIO(maxNum: 20))
        }
        
        contextLabel.snp.makeConstraints { (make) in
            make.left.equalTo(titleLabel)
        make.top.equalTo(titleLabel.snp.bottom).offset(RATIO_H(maxNum: 5))
            make.right.equalToSuperview()
            make.height.greaterThanOrEqualTo(10)
        }
        
        
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
}
